package MyFile;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class demo1 {
    public static void main(String[] args) throws IOException {
        //字节流读取文件
        InputStream inputStream = new FileInputStream("D:\\software\\code\\2023_java\\2023_java_code\\code_24_4_18\\src\\Text.text");
        int n;
        while ((n = inputStream.read()) != -1){
            System.out.print((char) n);
        }

        inputStream.close();
    }
}
